package com.liujit.generator.domain.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description 代码生成请求参数
 * @Author LiuJun
 * @Date 2020/8/13 11:37 上午
 */
@Data
@ApiModel(value = "GeneratorParam", description = "代码生成请求参数")
public class GeneratorParam {

    @NotBlank(message = "生成的项目根路径不能为空")
    @ApiModelProperty(value = "生成的项目根路径")
    private String projectPath;

    @NotBlank(message = "项目名称不能为空")
    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @NotBlank(message = "项目来源不能为空")
    @ApiModelProperty(value = "项目来源：admin、app、pc")
    private String reqFrom;

    @NotBlank(message = "作者不能为空")
    @ApiModelProperty(value = "作者")
    private String author;

    @NotBlank(message = "表名称不能为空")
    @ApiModelProperty(value = "表名称")
    private String tableName;

    @NotBlank(message = "业务名称不能为空")
    @ApiModelProperty(value = "业务名称")
    private String bizName;

    @ApiModelProperty(value = "Controller生成开关")
    private Boolean controllerSwitch = false;

    @ApiModelProperty(value = "Service生成开关")
    private Boolean serviceSwitch = false;

    @ApiModelProperty(value = "Mapper生成开关")
    private Boolean mapperSwitch = false;

    @ApiModelProperty(value = "Model生成开关")
    private Boolean modelSwitch = false;

    @ApiModelProperty(value = "Query生成开关")
    private Boolean querySwitch = false;

    @ApiModelProperty(value = "Param生成开关")
    private Boolean paramsSwitch = false;

    @ApiModelProperty(value = "Result生成开关")
    private Boolean resultSwitch = false;
}
